#include "blocktextures.h"

#include "../util.h"

#include <iostream>
#include <boost/filesystem.hpp>

namespace fs = boost::filesystem;

namespace mapcrafter {
namespace renderer {

BlockTextures::BlockTextures()
	: ANVIL_BASE("anvil_base"),
	  ANVIL_TOP_DAMAGED_0("anvil_top_damaged_0"),
	  ANVIL_TOP_DAMAGED_1("anvil_top_damaged_1"),
	  ANVIL_TOP_DAMAGED_2("anvil_top_damaged_2"),
	  BEACON("beacon"),
	  BEDROCK("bedrock"),
	  BEETROOTS_STAGE_0("beetroots_stage_0"),
	  BEETROOTS_STAGE_1("beetroots_stage_1"),
	  BEETROOTS_STAGE_2("beetroots_stage_2"),
	  BEETROOTS_STAGE_3("beetroots_stage_3"),
	  BONE_BLOCK_SIDE("bone_block_side"),
	  BONE_BLOCK_TOP("bone_block_top"),
	  BOOKSHELF("bookshelf"),
	  BREWING_STAND("brewing_stand"),
	  BREWING_STAND_BASE("brewing_stand_base"),
	  BRICK("brick"),
	  CACTUS_BOTTOM("cactus_bottom"),
	  CACTUS_SIDE("cactus_side"),
	  CACTUS_TOP("cactus_top"),
	  CAKE_BOTTOM("cake_bottom"),
	  CAKE_INNER("cake_inner"),
	  CAKE_SIDE("cake_side"),
	  CAKE_TOP("cake_top"),
	  CARROTS_STAGE_0("carrots_stage_0"),
	  CARROTS_STAGE_1("carrots_stage_1"),
	  CARROTS_STAGE_2("carrots_stage_2"),
	  CARROTS_STAGE_3("carrots_stage_3"),
	  CAULDRON_BOTTOM("cauldron_bottom"),
	  CAULDRON_INNER("cauldron_inner"),
	  CAULDRON_SIDE("cauldron_side"),
	  CAULDRON_TOP("cauldron_top"),
	  CHAIN_COMMAND_BLOCK_BACK("chain_command_block_back"),
	  CHAIN_COMMAND_BLOCK_CONDITIONAL("chain_command_block_conditional"),
	  CHAIN_COMMAND_BLOCK_FRONT("chain_command_block_front"),
	  CHAIN_COMMAND_BLOCK_SIDE("chain_command_block_side"),
	  CHORUS_FLOWER("chorus_flower"),
	  CHORUS_FLOWER_DEAD("chorus_flower_dead"),
	  CHORUS_PLANT("chorus_plant"),
	  CLAY("clay"),
	  COAL_BLOCK("coal_block"),
	  COAL_ORE("coal_ore"),
	  COARSE_DIRT("coarse_dirt"),
	  COBBLESTONE("cobblestone"),
	  COBBLESTONE_MOSSY("cobblestone_mossy"),
	  COCOA_STAGE_0("cocoa_stage_0"),
	  COCOA_STAGE_1("cocoa_stage_1"),
	  COCOA_STAGE_2("cocoa_stage_2"),
	  COMMAND_BLOCK_BACK("command_block_back"),
	  COMMAND_BLOCK_CONDITIONAL("command_block_conditional"),
	  COMMAND_BLOCK_FRONT("command_block_front"),
	  COMMAND_BLOCK_SIDE("command_block_side"),
	  COMPARATOR_OFF("comparator_off"),
	  COMPARATOR_ON("comparator_on"),
	  CONCRETE_BLACK("concrete_black"),
	  CONCRETE_BLUE("concrete_blue"),
	  CONCRETE_BROWN("concrete_brown"),
	  CONCRETE_CYAN("concrete_cyan"),
	  CONCRETE_GRAY("concrete_gray"),
	  CONCRETE_GREEN("concrete_green"),
	  CONCRETE_LIGHT_BLUE("concrete_light_blue"),
	  CONCRETE_LIME("concrete_lime"),
	  CONCRETE_MAGENTA("concrete_magenta"),
	  CONCRETE_ORANGE("concrete_orange"),
	  CONCRETE_PINK("concrete_pink"),
	  CONCRETE_POWDER_BLACK("concrete_powder_black"),
	  CONCRETE_POWDER_BLUE("concrete_powder_blue"),
	  CONCRETE_POWDER_BROWN("concrete_powder_brown"),
	  CONCRETE_POWDER_CYAN("concrete_powder_cyan"),
	  CONCRETE_POWDER_GRAY("concrete_powder_gray"),
	  CONCRETE_POWDER_GREEN("concrete_powder_green"),
	  CONCRETE_POWDER_LIGHT_BLUE("concrete_powder_light_blue"),
	  CONCRETE_POWDER_LIME("concrete_powder_lime"),
	  CONCRETE_POWDER_MAGENTA("concrete_powder_magenta"),
	  CONCRETE_POWDER_ORANGE("concrete_powder_orange"),
	  CONCRETE_POWDER_PINK("concrete_powder_pink"),
	  CONCRETE_POWDER_PURPLE("concrete_powder_purple"),
	  CONCRETE_POWDER_RED("concrete_powder_red"),
	  CONCRETE_POWDER_SILVER("concrete_powder_silver"),
	  CONCRETE_POWDER_WHITE("concrete_powder_white"),
	  CONCRETE_POWDER_YELLOW("concrete_powder_yellow"),
	  CONCRETE_PURPLE("concrete_purple"),
	  CONCRETE_RED("concrete_red"),
	  CONCRETE_SILVER("concrete_silver"),
	  CONCRETE_WHITE("concrete_white"),
	  CONCRETE_YELLOW("concrete_yellow"),
	  CRAFTING_TABLE_FRONT("crafting_table_front"),
	  CRAFTING_TABLE_SIDE("crafting_table_side"),
	  CRAFTING_TABLE_TOP("crafting_table_top"),
	  DAYLIGHT_DETECTOR_INVERTED_TOP("daylight_detector_inverted_top"),
	  DAYLIGHT_DETECTOR_SIDE("daylight_detector_side"),
	  DAYLIGHT_DETECTOR_TOP("daylight_detector_top"),
	  DEADBUSH("deadbush"),
	  DEBUG("debug"),
	  DEBUG2("debug2"),
	  DESTROY_STAGE_0("destroy_stage_0"),
	  DESTROY_STAGE_1("destroy_stage_1"),
	  DESTROY_STAGE_2("destroy_stage_2"),
	  DESTROY_STAGE_3("destroy_stage_3"),
	  DESTROY_STAGE_4("destroy_stage_4"),
	  DESTROY_STAGE_5("destroy_stage_5"),
	  DESTROY_STAGE_6("destroy_stage_6"),
	  DESTROY_STAGE_7("destroy_stage_7"),
	  DESTROY_STAGE_8("destroy_stage_8"),
	  DESTROY_STAGE_9("destroy_stage_9"),
	  DIAMOND_BLOCK("diamond_block"),
	  DIAMOND_ORE("diamond_ore"),
	  DIRT("dirt"),
	  DIRT_PODZOL_SIDE("dirt_podzol_side"),
	  DIRT_PODZOL_TOP("dirt_podzol_top"),
	  DISPENSER_FRONT_HORIZONTAL("dispenser_front_horizontal"),
	  DISPENSER_FRONT_VERTICAL("dispenser_front_vertical"),
	  DOOR_ACACIA_LOWER("door_acacia_lower"),
	  DOOR_ACACIA_UPPER("door_acacia_upper"),
	  DOOR_BIRCH_LOWER("door_birch_lower"),
	  DOOR_BIRCH_UPPER("door_birch_upper"),
	  DOOR_DARK_OAK_LOWER("door_dark_oak_lower"),
	  DOOR_DARK_OAK_UPPER("door_dark_oak_upper"),
	  DOOR_IRON_LOWER("door_iron_lower"),
	  DOOR_IRON_UPPER("door_iron_upper"),
	  DOOR_JUNGLE_LOWER("door_jungle_lower"),
	  DOOR_JUNGLE_UPPER("door_jungle_upper"),
	  DOOR_SPRUCE_LOWER("door_spruce_lower"),
	  DOOR_SPRUCE_UPPER("door_spruce_upper"),
	  DOOR_WOOD_LOWER("door_wood_lower"),
	  DOOR_WOOD_UPPER("door_wood_upper"),
	  DOUBLE_PLANT_FERN_BOTTOM("double_plant_fern_bottom"),
	  DOUBLE_PLANT_FERN_TOP("double_plant_fern_top"),
	  DOUBLE_PLANT_GRASS_BOTTOM("double_plant_grass_bottom"),
	  DOUBLE_PLANT_GRASS_TOP("double_plant_grass_top"),
	  DOUBLE_PLANT_PAEONIA_BOTTOM("double_plant_paeonia_bottom"),
	  DOUBLE_PLANT_PAEONIA_TOP("double_plant_paeonia_top"),
	  DOUBLE_PLANT_ROSE_BOTTOM("double_plant_rose_bottom"),
	  DOUBLE_PLANT_ROSE_TOP("double_plant_rose_top"),
	  DOUBLE_PLANT_SUNFLOWER_BACK("double_plant_sunflower_back"),
	  DOUBLE_PLANT_SUNFLOWER_BOTTOM("double_plant_sunflower_bottom"),
	  DOUBLE_PLANT_SUNFLOWER_FRONT("double_plant_sunflower_front"),
	  DOUBLE_PLANT_SUNFLOWER_TOP("double_plant_sunflower_top"),
	  DOUBLE_PLANT_SYRINGA_BOTTOM("double_plant_syringa_bottom"),
	  DOUBLE_PLANT_SYRINGA_TOP("double_plant_syringa_top"),
	  DRAGON_EGG("dragon_egg"),
	  DROPPER_FRONT_HORIZONTAL("dropper_front_horizontal"),
	  DROPPER_FRONT_VERTICAL("dropper_front_vertical"),
	  EMERALD_BLOCK("emerald_block"),
	  EMERALD_ORE("emerald_ore"),
	  ENCHANTING_TABLE_BOTTOM("enchanting_table_bottom"),
	  ENCHANTING_TABLE_SIDE("enchanting_table_side"),
	  ENCHANTING_TABLE_TOP("enchanting_table_top"),
	  END_BRICKS("end_bricks"),
	  END_ROD("end_rod"),
	  END_STONE("end_stone"),
	  ENDFRAME_EYE("endframe_eye"),
	  ENDFRAME_SIDE("endframe_side"),
	  ENDFRAME_TOP("endframe_top"),
	  FARMLAND_DRY("farmland_dry"),
	  FARMLAND_WET("farmland_wet"),
	  FERN("fern"),
	  FIRE_LAYER_0("fire_layer_0"),
	  FIRE_LAYER_1("fire_layer_1"),
	  FLOWER_ALLIUM("flower_allium"),
	  FLOWER_BLUE_ORCHID("flower_blue_orchid"),
	  FLOWER_DANDELION("flower_dandelion"),
	  FLOWER_HOUSTONIA("flower_houstonia"),
	  FLOWER_OXEYE_DAISY("flower_oxeye_daisy"),
	  FLOWER_PAEONIA("flower_paeonia"),
	  FLOWER_POT("flower_pot"),
	  FLOWER_ROSE("flower_rose"),
	  FLOWER_TULIP_ORANGE("flower_tulip_orange"),
	  FLOWER_TULIP_PINK("flower_tulip_pink"),
	  FLOWER_TULIP_RED("flower_tulip_red"),
	  FLOWER_TULIP_WHITE("flower_tulip_white"),
	  FROSTED_ICE_0("frosted_ice_0"),
	  FROSTED_ICE_1("frosted_ice_1"),
	  FROSTED_ICE_2("frosted_ice_2"),
	  FROSTED_ICE_3("frosted_ice_3"),
	  FURNACE_FRONT_OFF("furnace_front_off"),
	  FURNACE_FRONT_ON("furnace_front_on"),
	  FURNACE_SIDE("furnace_side"),
	  FURNACE_TOP("furnace_top"),
	  GLASS("glass"),
	  GLASS_BLACK("glass_black"),
	  GLASS_BLUE("glass_blue"),
	  GLASS_BROWN("glass_brown"),
	  GLASS_CYAN("glass_cyan"),
	  GLASS_GRAY("glass_gray"),
	  GLASS_GREEN("glass_green"),
	  GLASS_LIGHT_BLUE("glass_light_blue"),
	  GLASS_LIME("glass_lime"),
	  GLASS_MAGENTA("glass_magenta"),
	  GLASS_ORANGE("glass_orange"),
	  GLASS_PANE_TOP("glass_pane_top"),
	  GLASS_PANE_TOP_BLACK("glass_pane_top_black"),
	  GLASS_PANE_TOP_BLUE("glass_pane_top_blue"),
	  GLASS_PANE_TOP_BROWN("glass_pane_top_brown"),
	  GLASS_PANE_TOP_CYAN("glass_pane_top_cyan"),
	  GLASS_PANE_TOP_GRAY("glass_pane_top_gray"),
	  GLASS_PANE_TOP_GREEN("glass_pane_top_green"),
	  GLASS_PANE_TOP_LIGHT_BLUE("glass_pane_top_light_blue"),
	  GLASS_PANE_TOP_LIME("glass_pane_top_lime"),
	  GLASS_PANE_TOP_MAGENTA("glass_pane_top_magenta"),
	  GLASS_PANE_TOP_ORANGE("glass_pane_top_orange"),
	  GLASS_PANE_TOP_PINK("glass_pane_top_pink"),
	  GLASS_PANE_TOP_PURPLE("glass_pane_top_purple"),
	  GLASS_PANE_TOP_RED("glass_pane_top_red"),
	  GLASS_PANE_TOP_SILVER("glass_pane_top_silver"),
	  GLASS_PANE_TOP_WHITE("glass_pane_top_white"),
	  GLASS_PANE_TOP_YELLOW("glass_pane_top_yellow"),
	  GLASS_PINK("glass_pink"),
	  GLASS_PURPLE("glass_purple"),
	  GLASS_RED("glass_red"),
	  GLASS_SILVER("glass_silver"),
	  GLASS_WHITE("glass_white"),
	  GLASS_YELLOW("glass_yellow"),
	  GLAZED_TERRACOTTA_BLACK("glazed_terracotta_black"),
	  GLAZED_TERRACOTTA_BLUE("glazed_terracotta_blue"),
	  GLAZED_TERRACOTTA_BROWN("glazed_terracotta_brown"),
	  GLAZED_TERRACOTTA_CYAN("glazed_terracotta_cyan"),
	  GLAZED_TERRACOTTA_GRAY("glazed_terracotta_gray"),
	  GLAZED_TERRACOTTA_GREEN("glazed_terracotta_green"),
	  GLAZED_TERRACOTTA_LIGHT_BLUE("glazed_terracotta_light_blue"),
	  GLAZED_TERRACOTTA_LIME("glazed_terracotta_lime"),
	  GLAZED_TERRACOTTA_MAGENTA("glazed_terracotta_magenta"),
	  GLAZED_TERRACOTTA_ORANGE("glazed_terracotta_orange"),
	  GLAZED_TERRACOTTA_PINK("glazed_terracotta_pink"),
	  GLAZED_TERRACOTTA_PURPLE("glazed_terracotta_purple"),
	  GLAZED_TERRACOTTA_RED("glazed_terracotta_red"),
	  GLAZED_TERRACOTTA_SILVER("glazed_terracotta_silver"),
	  GLAZED_TERRACOTTA_WHITE("glazed_terracotta_white"),
	  GLAZED_TERRACOTTA_YELLOW("glazed_terracotta_yellow"),
	  GLOWSTONE("glowstone"),
	  GOLD_BLOCK("gold_block"),
	  GOLD_ORE("gold_ore"),
	  GRASS_PATH_SIDE("grass_path_side"),
	  GRASS_PATH_TOP("grass_path_top"),
	  GRASS_SIDE("grass_side"),
	  GRASS_SIDE_OVERLAY("grass_side_overlay"),
	  GRASS_SIDE_SNOWED("grass_side_snowed"),
	  GRASS_TOP("grass_top"),
	  GRAVEL("gravel"),
	  HARDENED_CLAY("hardened_clay"),
	  HARDENED_CLAY_STAINED_BLACK("hardened_clay_stained_black"),
	  HARDENED_CLAY_STAINED_BLUE("hardened_clay_stained_blue"),
	  HARDENED_CLAY_STAINED_BROWN("hardened_clay_stained_brown"),
	  HARDENED_CLAY_STAINED_CYAN("hardened_clay_stained_cyan"),
	  HARDENED_CLAY_STAINED_GRAY("hardened_clay_stained_gray"),
	  HARDENED_CLAY_STAINED_GREEN("hardened_clay_stained_green"),
	  HARDENED_CLAY_STAINED_LIGHT_BLUE("hardened_clay_stained_light_blue"),
	  HARDENED_CLAY_STAINED_LIME("hardened_clay_stained_lime"),
	  HARDENED_CLAY_STAINED_MAGENTA("hardened_clay_stained_magenta"),
	  HARDENED_CLAY_STAINED_ORANGE("hardened_clay_stained_orange"),
	  HARDENED_CLAY_STAINED_PINK("hardened_clay_stained_pink"),
	  HARDENED_CLAY_STAINED_PURPLE("hardened_clay_stained_purple"),
	  HARDENED_CLAY_STAINED_RED("hardened_clay_stained_red"),
	  HARDENED_CLAY_STAINED_SILVER("hardened_clay_stained_silver"),
	  HARDENED_CLAY_STAINED_WHITE("hardened_clay_stained_white"),
	  HARDENED_CLAY_STAINED_YELLOW("hardened_clay_stained_yellow"),
	  HAY_BLOCK_SIDE("hay_block_side"),
	  HAY_BLOCK_TOP("hay_block_top"),
	  HOPPER_INSIDE("hopper_inside"),
	  HOPPER_OUTSIDE("hopper_outside"),
	  HOPPER_TOP("hopper_top"),
	  ICE("ice"),
	  ICE_PACKED("ice_packed"),
	  IRON_BARS("iron_bars"),
	  IRON_BLOCK("iron_block"),
	  IRON_ORE("iron_ore"),
	  IRON_TRAPDOOR("iron_trapdoor"),
	  ITEMFRAME_BACKGROUND("itemframe_background"),
	  JUKEBOX_SIDE("jukebox_side"),
	  JUKEBOX_TOP("jukebox_top"),
	  LADDER("ladder"),
	  LAPIS_BLOCK("lapis_block"),
	  LAPIS_ORE("lapis_ore"),
	  LAVA_FLOW("lava_flow"),
	  LAVA_STILL("lava_still"),
	  LEAVES_ACACIA("leaves_acacia"),
	  LEAVES_BIG_OAK("leaves_big_oak"),
	  LEAVES_BIRCH("leaves_birch"),
	  LEAVES_JUNGLE("leaves_jungle"),
	  LEAVES_OAK("leaves_oak"),
	  LEAVES_SPRUCE("leaves_spruce"),
	  LEVER("lever"),
	  LOG_ACACIA("log_acacia"),
	  LOG_ACACIA_TOP("log_acacia_top"),
	  LOG_BIG_OAK("log_big_oak"),
	  LOG_BIG_OAK_TOP("log_big_oak_top"),
	  LOG_BIRCH("log_birch"),
	  LOG_BIRCH_TOP("log_birch_top"),
	  LOG_JUNGLE("log_jungle"),
	  LOG_JUNGLE_TOP("log_jungle_top"),
	  LOG_OAK("log_oak"),
	  LOG_OAK_TOP("log_oak_top"),
	  LOG_SPRUCE("log_spruce"),
	  LOG_SPRUCE_TOP("log_spruce_top"),
	  MAGMA("magma"),
	  MELON_SIDE("melon_side"),
	  MELON_STEM_CONNECTED("melon_stem_connected"),
	  MELON_STEM_DISCONNECTED("melon_stem_disconnected"),
	  MELON_TOP("melon_top"),
	  MOB_SPAWNER("mob_spawner"),
	  MUSHROOM_BLOCK_INSIDE("mushroom_block_inside"),
	  MUSHROOM_BLOCK_SKIN_BROWN("mushroom_block_skin_brown"),
	  MUSHROOM_BLOCK_SKIN_RED("mushroom_block_skin_red"),
	  MUSHROOM_BLOCK_SKIN_STEM("mushroom_block_skin_stem"),
	  MUSHROOM_BROWN("mushroom_brown"),
	  MUSHROOM_RED("mushroom_red"),
	  MYCELIUM_SIDE("mycelium_side"),
	  MYCELIUM_TOP("mycelium_top"),
	  NETHER_BRICK("nether_brick"),
	  NETHER_WART_BLOCK("nether_wart_block"),
	  NETHER_WART_STAGE_0("nether_wart_stage_0"),
	  NETHER_WART_STAGE_1("nether_wart_stage_1"),
	  NETHER_WART_STAGE_2("nether_wart_stage_2"),
	  NETHERRACK("netherrack"),
	  NOTEBLOCK("noteblock"),
	  OBSERVER_BACK("observer_back"),
	  OBSERVER_BACK_LIT("observer_back_lit"),
	  OBSERVER_FRONT("observer_front"),
	  OBSERVER_SIDE("observer_side"),
	  OBSERVER_TOP("observer_top"),
	  OBSIDIAN("obsidian"),
	  PISTON_BOTTOM("piston_bottom"),
	  PISTON_INNER("piston_inner"),
	  PISTON_SIDE("piston_side"),
	  PISTON_TOP_NORMAL("piston_top_normal"),
	  PISTON_TOP_STICKY("piston_top_sticky"),
	  PLANKS_ACACIA("planks_acacia"),
	  PLANKS_BIG_OAK("planks_big_oak"),
	  PLANKS_BIRCH("planks_birch"),
	  PLANKS_JUNGLE("planks_jungle"),
	  PLANKS_OAK("planks_oak"),
	  PLANKS_SPRUCE("planks_spruce"),
	  PORTAL("portal"),
	  POTATOES_STAGE_0("potatoes_stage_0"),
	  POTATOES_STAGE_1("potatoes_stage_1"),
	  POTATOES_STAGE_2("potatoes_stage_2"),
	  POTATOES_STAGE_3("potatoes_stage_3"),
	  PRISMARINE_BRICKS("prismarine_bricks"),
	  PRISMARINE_DARK("prismarine_dark"),
	  PRISMARINE_ROUGH("prismarine_rough"),
	  PUMPKIN_FACE_OFF("pumpkin_face_off"),
	  PUMPKIN_FACE_ON("pumpkin_face_on"),
	  PUMPKIN_SIDE("pumpkin_side"),
	  PUMPKIN_STEM_CONNECTED("pumpkin_stem_connected"),
	  PUMPKIN_STEM_DISCONNECTED("pumpkin_stem_disconnected"),
	  PUMPKIN_TOP("pumpkin_top"),
	  PURPUR_BLOCK("purpur_block"),
	  PURPUR_PILLAR("purpur_pillar"),
	  PURPUR_PILLAR_TOP("purpur_pillar_top"),
	  QUARTZ_BLOCK_BOTTOM("quartz_block_bottom"),
	  QUARTZ_BLOCK_CHISELED("quartz_block_chiseled"),
	  QUARTZ_BLOCK_CHISELED_TOP("quartz_block_chiseled_top"),
	  QUARTZ_BLOCK_LINES("quartz_block_lines"),
	  QUARTZ_BLOCK_LINES_TOP("quartz_block_lines_top"),
	  QUARTZ_BLOCK_SIDE("quartz_block_side"),
	  QUARTZ_BLOCK_TOP("quartz_block_top"),
	  QUARTZ_ORE("quartz_ore"),
	  RAIL_ACTIVATOR("rail_activator"),
	  RAIL_ACTIVATOR_POWERED("rail_activator_powered"),
	  RAIL_DETECTOR("rail_detector"),
	  RAIL_DETECTOR_POWERED("rail_detector_powered"),
	  RAIL_GOLDEN("rail_golden"),
	  RAIL_GOLDEN_POWERED("rail_golden_powered"),
	  RAIL_NORMAL("rail_normal"),
	  RAIL_NORMAL_TURNED("rail_normal_turned"),
	  RED_NETHER_BRICK("red_nether_brick"),
	  RED_SAND("red_sand"),
	  RED_SANDSTONE_BOTTOM("red_sandstone_bottom"),
	  RED_SANDSTONE_CARVED("red_sandstone_carved"),
	  RED_SANDSTONE_NORMAL("red_sandstone_normal"),
	  RED_SANDSTONE_SMOOTH("red_sandstone_smooth"),
	  RED_SANDSTONE_TOP("red_sandstone_top"),
	  REDSTONE_BLOCK("redstone_block"),
	  REDSTONE_DUST_DOT("redstone_dust_dot"),
	  REDSTONE_DUST_LINE0("redstone_dust_line0"),
	  REDSTONE_DUST_LINE1("redstone_dust_line1"),
	  REDSTONE_DUST_OVERLAY("redstone_dust_overlay"),
	  REDSTONE_LAMP_OFF("redstone_lamp_off"),
	  REDSTONE_LAMP_ON("redstone_lamp_on"),
	  REDSTONE_ORE("redstone_ore"),
	  REDSTONE_TORCH_OFF("redstone_torch_off"),
	  REDSTONE_TORCH_ON("redstone_torch_on"),
	  REEDS("reeds"),
	  REPEATER_OFF("repeater_off"),
	  REPEATER_ON("repeater_on"),
	  REPEATING_COMMAND_BLOCK_BACK("repeating_command_block_back"),
	  REPEATING_COMMAND_BLOCK_CONDITIONAL("repeating_command_block_conditional"),
	  REPEATING_COMMAND_BLOCK_FRONT("repeating_command_block_front"),
	  REPEATING_COMMAND_BLOCK_SIDE("repeating_command_block_side"),
	  SAND("sand"),
	  SANDSTONE_BOTTOM("sandstone_bottom"),
	  SANDSTONE_CARVED("sandstone_carved"),
	  SANDSTONE_NORMAL("sandstone_normal"),
	  SANDSTONE_SMOOTH("sandstone_smooth"),
	  SANDSTONE_TOP("sandstone_top"),
	  SAPLING_ACACIA("sapling_acacia"),
	  SAPLING_BIRCH("sapling_birch"),
	  SAPLING_JUNGLE("sapling_jungle"),
	  SAPLING_OAK("sapling_oak"),
	  SAPLING_ROOFED_OAK("sapling_roofed_oak"),
	  SAPLING_SPRUCE("sapling_spruce"),
	  SEA_LANTERN("sea_lantern"),
	  SHULKER_TOP_BLACK("shulker_top_black"),
	  SHULKER_TOP_BLUE("shulker_top_blue"),
	  SHULKER_TOP_BROWN("shulker_top_brown"),
	  SHULKER_TOP_CYAN("shulker_top_cyan"),
	  SHULKER_TOP_GRAY("shulker_top_gray"),
	  SHULKER_TOP_GREEN("shulker_top_green"),
	  SHULKER_TOP_LIGHT_BLUE("shulker_top_light_blue"),
	  SHULKER_TOP_LIME("shulker_top_lime"),
	  SHULKER_TOP_MAGENTA("shulker_top_magenta"),
	  SHULKER_TOP_ORANGE("shulker_top_orange"),
	  SHULKER_TOP_PINK("shulker_top_pink"),
	  SHULKER_TOP_PURPLE("shulker_top_purple"),
	  SHULKER_TOP_RED("shulker_top_red"),
	  SHULKER_TOP_SILVER("shulker_top_silver"),
	  SHULKER_TOP_WHITE("shulker_top_white"),
	  SHULKER_TOP_YELLOW("shulker_top_yellow"),
	  SLIME("slime"),
	  SNOW("snow"),
	  SOUL_SAND("soul_sand"),
	  SPONGE("sponge"),
	  SPONGE_WET("sponge_wet"),
	  STONE("stone"),
	  STONE_ANDESITE("stone_andesite"),
	  STONE_ANDESITE_SMOOTH("stone_andesite_smooth"),
	  STONE_DIORITE("stone_diorite"),
	  STONE_DIORITE_SMOOTH("stone_diorite_smooth"),
	  STONE_GRANITE("stone_granite"),
	  STONE_GRANITE_SMOOTH("stone_granite_smooth"),
	  STONE_SLAB_SIDE("stone_slab_side"),
	  STONE_SLAB_TOP("stone_slab_top"),
	  STONEBRICK("stonebrick"),
	  STONEBRICK_CARVED("stonebrick_carved"),
	  STONEBRICK_CRACKED("stonebrick_cracked"),
	  STONEBRICK_MOSSY("stonebrick_mossy"),
	  STRUCTURE_BLOCK("structure_block"),
	  STRUCTURE_BLOCK_CORNER("structure_block_corner"),
	  STRUCTURE_BLOCK_DATA("structure_block_data"),
	  STRUCTURE_BLOCK_LOAD("structure_block_load"),
	  STRUCTURE_BLOCK_SAVE("structure_block_save"),
	  TALLGRASS("tallgrass"),
	  TNT_BOTTOM("tnt_bottom"),
	  TNT_SIDE("tnt_side"),
	  TNT_TOP("tnt_top"),
	  TORCH_ON("torch_on"),
	  TRAPDOOR("trapdoor"),
	  TRIP_WIRE("trip_wire"),
	  TRIP_WIRE_SOURCE("trip_wire_source"),
	  VINE("vine"),
	  WATER_FLOW("water_flow"),
	  WATER_OVERLAY("water_overlay"),
	  WATER_STILL("water_still"),
	  WATERLILY("waterlily"),
	  WEB("web"),
	  WHEAT_STAGE_0("wheat_stage_0"),
	  WHEAT_STAGE_1("wheat_stage_1"),
	  WHEAT_STAGE_2("wheat_stage_2"),
	  WHEAT_STAGE_3("wheat_stage_3"),
	  WHEAT_STAGE_4("wheat_stage_4"),
	  WHEAT_STAGE_5("wheat_stage_5"),
	  WHEAT_STAGE_6("wheat_stage_6"),
	  WHEAT_STAGE_7("wheat_stage_7"),
	  WOOL_COLORED_BLACK("wool_colored_black"),
	  WOOL_COLORED_BLUE("wool_colored_blue"),
	  WOOL_COLORED_BROWN("wool_colored_brown"),
	  WOOL_COLORED_CYAN("wool_colored_cyan"),
	  WOOL_COLORED_GRAY("wool_colored_gray"),
	  WOOL_COLORED_GREEN("wool_colored_green"),
	  WOOL_COLORED_LIGHT_BLUE("wool_colored_light_blue"),
	  WOOL_COLORED_LIME("wool_colored_lime"),
	  WOOL_COLORED_MAGENTA("wool_colored_magenta"),
	  WOOL_COLORED_ORANGE("wool_colored_orange"),
	  WOOL_COLORED_PINK("wool_colored_pink"),
	  WOOL_COLORED_PURPLE("wool_colored_purple"),
	  WOOL_COLORED_RED("wool_colored_red"),
	  WOOL_COLORED_SILVER("wool_colored_silver"),
	  WOOL_COLORED_WHITE("wool_colored_white"),
	  WOOL_COLORED_YELLOW("wool_colored_yellow"),
	  textures({ &ANVIL_BASE,
	             &ANVIL_TOP_DAMAGED_0,
	             &ANVIL_TOP_DAMAGED_1,
	             &ANVIL_TOP_DAMAGED_2,
	             &BEACON,
	             &BEDROCK,
	             &BEETROOTS_STAGE_0,
	             &BEETROOTS_STAGE_1,
	             &BEETROOTS_STAGE_2,
	             &BEETROOTS_STAGE_3,
	             &BONE_BLOCK_SIDE,
	             &BONE_BLOCK_TOP,
	             &BOOKSHELF,
	             &BREWING_STAND,
	             &BREWING_STAND_BASE,
	             &BRICK,
	             &CACTUS_BOTTOM,
	             &CACTUS_SIDE,
	             &CACTUS_TOP,
	             &CAKE_BOTTOM,
	             &CAKE_INNER,
	             &CAKE_SIDE,
	             &CAKE_TOP,
	             &CARROTS_STAGE_0,
	             &CARROTS_STAGE_1,
	             &CARROTS_STAGE_2,
	             &CARROTS_STAGE_3,
	             &CAULDRON_BOTTOM,
	             &CAULDRON_INNER,
	             &CAULDRON_SIDE,
	             &CAULDRON_TOP,
	             &CHAIN_COMMAND_BLOCK_BACK,
	             &CHAIN_COMMAND_BLOCK_CONDITIONAL,
	             &CHAIN_COMMAND_BLOCK_FRONT,
	             &CHAIN_COMMAND_BLOCK_SIDE,
	             &CHORUS_FLOWER,
	             &CHORUS_FLOWER_DEAD,
	             &CHORUS_PLANT,
	             &CLAY,
	             &COAL_BLOCK,
	             &COAL_ORE,
	             &COARSE_DIRT,
	             &COBBLESTONE,
	             &COBBLESTONE_MOSSY,
	             &COCOA_STAGE_0,
	             &COCOA_STAGE_1,
	             &COCOA_STAGE_2,
	             &COMMAND_BLOCK_BACK,
	             &COMMAND_BLOCK_CONDITIONAL,
	             &COMMAND_BLOCK_FRONT,
	             &COMMAND_BLOCK_SIDE,
	             &COMPARATOR_OFF,
	             &COMPARATOR_ON,
	             &CONCRETE_BLACK,
	             &CONCRETE_BLUE,
	             &CONCRETE_BROWN,
	             &CONCRETE_CYAN,
	             &CONCRETE_GRAY,
	             &CONCRETE_GREEN,
	             &CONCRETE_LIGHT_BLUE,
	             &CONCRETE_LIME,
	             &CONCRETE_MAGENTA,
	             &CONCRETE_ORANGE,
	             &CONCRETE_PINK,
	             &CONCRETE_POWDER_BLACK,
	             &CONCRETE_POWDER_BLUE,
	             &CONCRETE_POWDER_BROWN,
	             &CONCRETE_POWDER_CYAN,
	             &CONCRETE_POWDER_GRAY,
	             &CONCRETE_POWDER_GREEN,
	             &CONCRETE_POWDER_LIGHT_BLUE,
	             &CONCRETE_POWDER_LIME,
	             &CONCRETE_POWDER_MAGENTA,
	             &CONCRETE_POWDER_ORANGE,
	             &CONCRETE_POWDER_PINK,
	             &CONCRETE_POWDER_PURPLE,
	             &CONCRETE_POWDER_RED,
	             &CONCRETE_POWDER_SILVER,
	             &CONCRETE_POWDER_WHITE,
	             &CONCRETE_POWDER_YELLOW,
	             &CONCRETE_PURPLE,
	             &CONCRETE_RED,
	             &CONCRETE_SILVER,
	             &CONCRETE_WHITE,
	             &CONCRETE_YELLOW,
	             &CRAFTING_TABLE_FRONT,
	             &CRAFTING_TABLE_SIDE,
	             &CRAFTING_TABLE_TOP,
	             &DAYLIGHT_DETECTOR_INVERTED_TOP,
	             &DAYLIGHT_DETECTOR_SIDE,
	             &DAYLIGHT_DETECTOR_TOP,
	             &DEADBUSH,
	             &DEBUG,
	             &DEBUG2,
	             &DESTROY_STAGE_0,
	             &DESTROY_STAGE_1,
	             &DESTROY_STAGE_2,
	             &DESTROY_STAGE_3,
	             &DESTROY_STAGE_4,
	             &DESTROY_STAGE_5,
	             &DESTROY_STAGE_6,
	             &DESTROY_STAGE_7,
	             &DESTROY_STAGE_8,
	             &DESTROY_STAGE_9,
	             &DIAMOND_BLOCK,
	             &DIAMOND_ORE,
	             &DIRT,
	             &DIRT_PODZOL_SIDE,
	             &DIRT_PODZOL_TOP,
	             &DISPENSER_FRONT_HORIZONTAL,
	             &DISPENSER_FRONT_VERTICAL,
	             &DOOR_ACACIA_LOWER,
	             &DOOR_ACACIA_UPPER,
	             &DOOR_BIRCH_LOWER,
	             &DOOR_BIRCH_UPPER,
	             &DOOR_DARK_OAK_LOWER,
	             &DOOR_DARK_OAK_UPPER,
	             &DOOR_IRON_LOWER,
	             &DOOR_IRON_UPPER,
	             &DOOR_JUNGLE_LOWER,
	             &DOOR_JUNGLE_UPPER,
	             &DOOR_SPRUCE_LOWER,
	             &DOOR_SPRUCE_UPPER,
	             &DOOR_WOOD_LOWER,
	             &DOOR_WOOD_UPPER,
	             &DOUBLE_PLANT_FERN_BOTTOM,
	             &DOUBLE_PLANT_FERN_TOP,
	             &DOUBLE_PLANT_GRASS_BOTTOM,
	             &DOUBLE_PLANT_GRASS_TOP,
	             &DOUBLE_PLANT_PAEONIA_BOTTOM,
	             &DOUBLE_PLANT_PAEONIA_TOP,
	             &DOUBLE_PLANT_ROSE_BOTTOM,
	             &DOUBLE_PLANT_ROSE_TOP,
	             &DOUBLE_PLANT_SUNFLOWER_BACK,
	             &DOUBLE_PLANT_SUNFLOWER_BOTTOM,
	             &DOUBLE_PLANT_SUNFLOWER_FRONT,
	             &DOUBLE_PLANT_SUNFLOWER_TOP,
	             &DOUBLE_PLANT_SYRINGA_BOTTOM,
	             &DOUBLE_PLANT_SYRINGA_TOP,
	             &DRAGON_EGG,
	             &DROPPER_FRONT_HORIZONTAL,
	             &DROPPER_FRONT_VERTICAL,
	             &EMERALD_BLOCK,
	             &EMERALD_ORE,
	             &ENCHANTING_TABLE_BOTTOM,
	             &ENCHANTING_TABLE_SIDE,
	             &ENCHANTING_TABLE_TOP,
	             &END_BRICKS,
	             &END_ROD,
	             &END_STONE,
	             &ENDFRAME_EYE,
	             &ENDFRAME_SIDE,
	             &ENDFRAME_TOP,
	             &FARMLAND_DRY,
	             &FARMLAND_WET,
	             &FERN,
	             &FIRE_LAYER_0,
	             &FIRE_LAYER_1,
	             &FLOWER_ALLIUM,
	             &FLOWER_BLUE_ORCHID,
	             &FLOWER_DANDELION,
	             &FLOWER_HOUSTONIA,
	             &FLOWER_OXEYE_DAISY,
	             &FLOWER_PAEONIA,
	             &FLOWER_POT,
	             &FLOWER_ROSE,
	             &FLOWER_TULIP_ORANGE,
	             &FLOWER_TULIP_PINK,
	             &FLOWER_TULIP_RED,
	             &FLOWER_TULIP_WHITE,
	             &FROSTED_ICE_0,
	             &FROSTED_ICE_1,
	             &FROSTED_ICE_2,
	             &FROSTED_ICE_3,
	             &FURNACE_FRONT_OFF,
	             &FURNACE_FRONT_ON,
	             &FURNACE_SIDE,
	             &FURNACE_TOP,
	             &GLASS,
	             &GLASS_BLACK,
	             &GLASS_BLUE,
	             &GLASS_BROWN,
	             &GLASS_CYAN,
	             &GLASS_GRAY,
	             &GLASS_GREEN,
	             &GLASS_LIGHT_BLUE,
	             &GLASS_LIME,
	             &GLASS_MAGENTA,
	             &GLASS_ORANGE,
	             &GLASS_PANE_TOP,
	             &GLASS_PANE_TOP_BLACK,
	             &GLASS_PANE_TOP_BLUE,
	             &GLASS_PANE_TOP_BROWN,
	             &GLASS_PANE_TOP_CYAN,
	             &GLASS_PANE_TOP_GRAY,
	             &GLASS_PANE_TOP_GREEN,
	             &GLASS_PANE_TOP_LIGHT_BLUE,
	             &GLASS_PANE_TOP_LIME,
	             &GLASS_PANE_TOP_MAGENTA,
	             &GLASS_PANE_TOP_ORANGE,
	             &GLASS_PANE_TOP_PINK,
	             &GLASS_PANE_TOP_PURPLE,
	             &GLASS_PANE_TOP_RED,
	             &GLASS_PANE_TOP_SILVER,
	             &GLASS_PANE_TOP_WHITE,
	             &GLASS_PANE_TOP_YELLOW,
	             &GLASS_PINK,
	             &GLASS_PURPLE,
	             &GLASS_RED,
	             &GLASS_SILVER,
	             &GLASS_WHITE,
	             &GLASS_YELLOW,
	             &GLAZED_TERRACOTTA_BLACK,
	             &GLAZED_TERRACOTTA_BLUE,
	             &GLAZED_TERRACOTTA_BROWN,
	             &GLAZED_TERRACOTTA_CYAN,
	             &GLAZED_TERRACOTTA_GRAY,
	             &GLAZED_TERRACOTTA_GREEN,
	             &GLAZED_TERRACOTTA_LIGHT_BLUE,
	             &GLAZED_TERRACOTTA_LIME,
	             &GLAZED_TERRACOTTA_MAGENTA,
	             &GLAZED_TERRACOTTA_ORANGE,
	             &GLAZED_TERRACOTTA_PINK,
	             &GLAZED_TERRACOTTA_PURPLE,
	             &GLAZED_TERRACOTTA_RED,
	             &GLAZED_TERRACOTTA_SILVER,
	             &GLAZED_TERRACOTTA_WHITE,
	             &GLAZED_TERRACOTTA_YELLOW,
	             &GLOWSTONE,
	             &GOLD_BLOCK,
	             &GOLD_ORE,
	             &GRASS_PATH_SIDE,
	             &GRASS_PATH_TOP,
	             &GRASS_SIDE,
	             &GRASS_SIDE_OVERLAY,
	             &GRASS_SIDE_SNOWED,
	             &GRASS_TOP,
	             &GRAVEL,
	             &HARDENED_CLAY,
	             &HARDENED_CLAY_STAINED_BLACK,
	             &HARDENED_CLAY_STAINED_BLUE,
	             &HARDENED_CLAY_STAINED_BROWN,
	             &HARDENED_CLAY_STAINED_CYAN,
	             &HARDENED_CLAY_STAINED_GRAY,
	             &HARDENED_CLAY_STAINED_GREEN,
	             &HARDENED_CLAY_STAINED_LIGHT_BLUE,
	             &HARDENED_CLAY_STAINED_LIME,
	             &HARDENED_CLAY_STAINED_MAGENTA,
	             &HARDENED_CLAY_STAINED_ORANGE,
	             &HARDENED_CLAY_STAINED_PINK,
	             &HARDENED_CLAY_STAINED_PURPLE,
	             &HARDENED_CLAY_STAINED_RED,
	             &HARDENED_CLAY_STAINED_SILVER,
	             &HARDENED_CLAY_STAINED_WHITE,
	             &HARDENED_CLAY_STAINED_YELLOW,
	             &HAY_BLOCK_SIDE,
	             &HAY_BLOCK_TOP,
	             &HOPPER_INSIDE,
	             &HOPPER_OUTSIDE,
	             &HOPPER_TOP,
	             &ICE,
	             &ICE_PACKED,
	             &IRON_BARS,
	             &IRON_BLOCK,
	             &IRON_ORE,
	             &IRON_TRAPDOOR,
	             &ITEMFRAME_BACKGROUND,
	             &JUKEBOX_SIDE,
	             &JUKEBOX_TOP,
	             &LADDER,
	             &LAPIS_BLOCK,
	             &LAPIS_ORE,
	             &LAVA_FLOW,
	             &LAVA_STILL,
	             &LEAVES_ACACIA,
	             &LEAVES_BIG_OAK,
	             &LEAVES_BIRCH,
	             &LEAVES_JUNGLE,
	             &LEAVES_OAK,
	             &LEAVES_SPRUCE,
	             &LEVER,
	             &LOG_ACACIA,
	             &LOG_ACACIA_TOP,
	             &LOG_BIG_OAK,
	             &LOG_BIG_OAK_TOP,
	             &LOG_BIRCH,
	             &LOG_BIRCH_TOP,
	             &LOG_JUNGLE,
	             &LOG_JUNGLE_TOP,
	             &LOG_OAK,
	             &LOG_OAK_TOP,
	             &LOG_SPRUCE,
	             &LOG_SPRUCE_TOP,
	             &MAGMA,
	             &MELON_SIDE,
	             &MELON_STEM_CONNECTED,
	             &MELON_STEM_DISCONNECTED,
	             &MELON_TOP,
	             &MOB_SPAWNER,
	             &MUSHROOM_BLOCK_INSIDE,
	             &MUSHROOM_BLOCK_SKIN_BROWN,
	             &MUSHROOM_BLOCK_SKIN_RED,
	             &MUSHROOM_BLOCK_SKIN_STEM,
	             &MUSHROOM_BROWN,
	             &MUSHROOM_RED,
	             &MYCELIUM_SIDE,
	             &MYCELIUM_TOP,
	             &NETHER_BRICK,
	             &NETHER_WART_BLOCK,
	             &NETHER_WART_STAGE_0,
	             &NETHER_WART_STAGE_1,
	             &NETHER_WART_STAGE_2,
	             &NETHERRACK,
	             &NOTEBLOCK,
	             &OBSERVER_BACK,
	             &OBSERVER_BACK_LIT,
	             &OBSERVER_FRONT,
	             &OBSERVER_SIDE,
	             &OBSERVER_TOP,
	             &OBSIDIAN,
	             &PISTON_BOTTOM,
	             &PISTON_INNER,
	             &PISTON_SIDE,
	             &PISTON_TOP_NORMAL,
	             &PISTON_TOP_STICKY,
	             &PLANKS_ACACIA,
	             &PLANKS_BIG_OAK,
	             &PLANKS_BIRCH,
	             &PLANKS_JUNGLE,
	             &PLANKS_OAK,
	             &PLANKS_SPRUCE,
	             &PORTAL,
	             &POTATOES_STAGE_0,
	             &POTATOES_STAGE_1,
	             &POTATOES_STAGE_2,
	             &POTATOES_STAGE_3,
	             &PRISMARINE_BRICKS,
	             &PRISMARINE_DARK,
	             &PRISMARINE_ROUGH,
	             &PUMPKIN_FACE_OFF,
	             &PUMPKIN_FACE_ON,
	             &PUMPKIN_SIDE,
	             &PUMPKIN_STEM_CONNECTED,
	             &PUMPKIN_STEM_DISCONNECTED,
	             &PUMPKIN_TOP,
	             &PURPUR_BLOCK,
	             &PURPUR_PILLAR,
	             &PURPUR_PILLAR_TOP,
	             &QUARTZ_BLOCK_BOTTOM,
	             &QUARTZ_BLOCK_CHISELED,
	             &QUARTZ_BLOCK_CHISELED_TOP,
	             &QUARTZ_BLOCK_LINES,
	             &QUARTZ_BLOCK_LINES_TOP,
	             &QUARTZ_BLOCK_SIDE,
	             &QUARTZ_BLOCK_TOP,
	             &QUARTZ_ORE,
	             &RAIL_ACTIVATOR,
	             &RAIL_ACTIVATOR_POWERED,
	             &RAIL_DETECTOR,
	             &RAIL_DETECTOR_POWERED,
	             &RAIL_GOLDEN,
	             &RAIL_GOLDEN_POWERED,
	             &RAIL_NORMAL,
	             &RAIL_NORMAL_TURNED,
	             &RED_NETHER_BRICK,
	             &RED_SAND,
	             &RED_SANDSTONE_BOTTOM,
	             &RED_SANDSTONE_CARVED,
	             &RED_SANDSTONE_NORMAL,
	             &RED_SANDSTONE_SMOOTH,
	             &RED_SANDSTONE_TOP,
	             &REDSTONE_BLOCK,
	             &REDSTONE_DUST_DOT,
	             &REDSTONE_DUST_LINE0,
	             &REDSTONE_DUST_LINE1,
	             &REDSTONE_DUST_OVERLAY,
	             &REDSTONE_LAMP_OFF,
	             &REDSTONE_LAMP_ON,
	             &REDSTONE_ORE,
	             &REDSTONE_TORCH_OFF,
	             &REDSTONE_TORCH_ON,
	             &REEDS,
	             &REPEATER_OFF,
	             &REPEATER_ON,
	             &REPEATING_COMMAND_BLOCK_BACK,
	             &REPEATING_COMMAND_BLOCK_CONDITIONAL,
	             &REPEATING_COMMAND_BLOCK_FRONT,
	             &REPEATING_COMMAND_BLOCK_SIDE,
	             &SAND,
	             &SANDSTONE_BOTTOM,
	             &SANDSTONE_CARVED,
	             &SANDSTONE_NORMAL,
	             &SANDSTONE_SMOOTH,
	             &SANDSTONE_TOP,
	             &SAPLING_ACACIA,
	             &SAPLING_BIRCH,
	             &SAPLING_JUNGLE,
	             &SAPLING_OAK,
	             &SAPLING_ROOFED_OAK,
	             &SAPLING_SPRUCE,
	             &SEA_LANTERN,
	             &SHULKER_TOP_BLACK,
	             &SHULKER_TOP_BLUE,
	             &SHULKER_TOP_BROWN,
	             &SHULKER_TOP_CYAN,
	             &SHULKER_TOP_GRAY,
	             &SHULKER_TOP_GREEN,
	             &SHULKER_TOP_LIGHT_BLUE,
	             &SHULKER_TOP_LIME,
	             &SHULKER_TOP_MAGENTA,
	             &SHULKER_TOP_ORANGE,
	             &SHULKER_TOP_PINK,
	             &SHULKER_TOP_PURPLE,
	             &SHULKER_TOP_RED,
	             &SHULKER_TOP_SILVER,
	             &SHULKER_TOP_WHITE,
	             &SHULKER_TOP_YELLOW,
	             &SLIME,
	             &SNOW,
	             &SOUL_SAND,
	             &SPONGE,
	             &SPONGE_WET,
	             &STONE,
	             &STONE_ANDESITE,
	             &STONE_ANDESITE_SMOOTH,
	             &STONE_DIORITE,
	             &STONE_DIORITE_SMOOTH,
	             &STONE_GRANITE,
	             &STONE_GRANITE_SMOOTH,
	             &STONE_SLAB_SIDE,
	             &STONE_SLAB_TOP,
	             &STONEBRICK,
	             &STONEBRICK_CARVED,
	             &STONEBRICK_CRACKED,
	             &STONEBRICK_MOSSY,
	             &STRUCTURE_BLOCK,
	             &STRUCTURE_BLOCK_CORNER,
	             &STRUCTURE_BLOCK_DATA,
	             &STRUCTURE_BLOCK_LOAD,
	             &STRUCTURE_BLOCK_SAVE,
	             &TALLGRASS,
	             &TNT_BOTTOM,
	             &TNT_SIDE,
	             &TNT_TOP,
	             &TORCH_ON,
	             &TRAPDOOR,
	             &TRIP_WIRE,
	             &TRIP_WIRE_SOURCE,
	             &VINE,
	             &WATER_FLOW,
	             &WATER_OVERLAY,
	             &WATER_STILL,
	             &WATERLILY,
	             &WEB,
	             &WHEAT_STAGE_0,
	             &WHEAT_STAGE_1,
	             &WHEAT_STAGE_2,
	             &WHEAT_STAGE_3,
	             &WHEAT_STAGE_4,
	             &WHEAT_STAGE_5,
	             &WHEAT_STAGE_6,
	             &WHEAT_STAGE_7,
	             &WOOL_COLORED_BLACK,
	             &WOOL_COLORED_BLUE,
	             &WOOL_COLORED_BROWN,
	             &WOOL_COLORED_CYAN,
	             &WOOL_COLORED_GRAY,
	             &WOOL_COLORED_GREEN,
	             &WOOL_COLORED_LIGHT_BLUE,
	             &WOOL_COLORED_LIME,
	             &WOOL_COLORED_MAGENTA,
	             &WOOL_COLORED_ORANGE,
	             &WOOL_COLORED_PINK,
	             &WOOL_COLORED_PURPLE,
	             &WOOL_COLORED_RED,
	             &WOOL_COLORED_SILVER,
	             &WOOL_COLORED_WHITE,
	             &WOOL_COLORED_YELLOW, }) {
}

BlockTextures::~BlockTextures() {
}

/**
 * Loads all block textures from the 'blocks' directory.
 */
bool BlockTextures::load(const std::string& block_dir, int size, int blur, double water_opacity) {
	if (!fs::exists(block_dir) || !fs::is_directory(block_dir)) {
		LOG(ERROR) << "Directory '" << block_dir << "' with block textures does not exist.";
		return false;
	}

	// go through all textures and load them
	bool loaded_all = true;
	for (size_t i = 0; i < textures.size(); i++) {
		if (!textures[i]->load(block_dir, size, blur, water_opacity)) {
			LOG(WARNING) << "Unable to load block texture '" << textures[i]->getName() << ".png'.";
			loaded_all = false;
		}
	}
	if (!loaded_all)
		LOG(WARNING) << "Unable to load some block textures.";
	return true;
}

}
}
